@import "~ares-uikit/lib/style/base/variables.less";
@import "~ares-uikit/lib/style/base/mixins.less";

html {
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
body {
    //background-color: #f9f9f9 !important;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

#root {
    height: 100%;
    overflow-y: auto;

    &::-webkit-scrollbar {
        display: none;
    }
}

.layout-main {
    height: 100%;
}
/* common	*/
a {
    color: @brand-primary;
}
a:hover, a:visited, a:active, a:focus {
    text-decoration: none;
}

.font-default {
    font-size: @font-size-default !important;
}

.font-base {
    font-size: @font-size-base !important;
}

.font-sm {
    font-size: @font-size-display-sm !important;
}

.font-caption {
    font-size: @font-size-caption !important;
}

.font-lg {
    font-size: @font-size-display-lg !important;
}

.line-height-base {
    line-height: 18px;
}

.color-white {
    color: #fff !important;
}

.color-base {
    color: @color-text-base !important;
}

.color-grayer {
    color: @color-text-base !important;
}

.color-gray {
    color: @color-text-caption !important;
}

.color-secondary {
    color: @color-text-secondary !important;
}

.color-placeholder {
    color: @color-text-placeholder !important;
}

.color-disabled {
    color: @color-text-disabled !important;
}

.color-primary {
    color: @brand-primary !important;
}

.color-primary-lighter {
    color: lighten(@brand-primary, 37%) !important;
}

.color-success {
    color: @brand-success !important;
}

.color-warning {
    color: @brand-warning !important;
}

.color-error {
    color: @brand-error !important;
}

.color-hot {
    color: @brand-hot !important;
}

.color-important {
    color: @brand-important !important;
}

.push-none {
    margin: 0 !important;
}

.push-auto {
    margin: 0 auto !important;
}

.wing-blank-btn {
    margin: 0 15px !important;
}

.fill-none {
    padding: 0 !important;
}

.fillt-sm {
    padding-top: 10px;
}

.fillb-sm {
    padding-bottom: 10px;
}

.filll-md {
    padding-left: 15px;
}

.fillr-md {
    padding-right: 10px;
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-gray {
    background-color: @fill-body !important;
}

.pull-right {
    float: right;
}

.pull-left {
    float: left;
}

.t-center {
    text-align: center;
}

.t-left {
    text-align: left;
}

.t-right {
    text-align: right;
}

.p-indent {
    text-indent: 2em;
}

.bd-top {
    border-top: 1px solid @border-color-split;
}

.bd-bottom {
    border-bottom: 1px solid @border-color-split;
}

.clearfix:after {
    content: '';
    display: block;
    clear: both;
}

//G2图表插件盒子
.g2-wrapper {
    background-color: #fff;
}

//表格盒子
.table-wrapper {
    background-color: #fff;
}

.table tr th,
.table tr td {
    font-size: @font-size-base;
    text-align: center;
}

.table tr th {
    font-weight: normal;
    border-top: 1px solid @border-color-split;
    border-bottom: 1px solid @border-color-split;
}

.table tr td {
    border: none;
    color: @color-text-caption;
    padding: 8px 8px;
}

//tabs页
.tabs {

    &.tabs-light {

        .tabs-ink-bar {
            background-color: transparent;
        }

        .tabs-bar .tabs-tab {
            font-size: 13px;
            height: 40px;
            line-height: 40px;
        }
    }
}

//获取验证码按钮
.button.validate-btn {
    width: 110px;
    height: 50px;
    line-height: 50px;
    font-size: @font-size-secondary;
    color: @brand-primary;
    text-align: center;
    padding: 0 14px;
    border-color: transparent transparent transparent @border-color-split;
    background-color: transparent !important;
    -webkit-border-radius: 0;
    border-radius: 0;
    &.button-disabled {
        color: @color-text-disabled;
        background-color: transparent;
        border-left: 1px solid @border-color-split;
    }
}

.text-nowrap{
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.text-multi-nowrap{
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

//审核状态标签
.label-tags {
    font-size: @font-size-secondary;
    //padding: 4px 10px;
    //background-color: #eee;
    //.border-radius(2px);

    &.primary {
        color: @brand-warning;
        //background-color: @brand-primary;
    }

    &.error {
        color: @brand-error;
        //background-color: @brand-error;
    }

    &.success {
        color: @brand-success;
        //background-color: @brand-success;
    }
}

//头像
.avatar-box {
    display: inline-block;
    width: 65px;
    height: 65px;
    border: 1px solid @border-color-base;
    .border-radius(50%);
    overflow: hidden;

    img {
        width: 100%;
        height: auto;
        vertical-align: middle;
    }
}

//查看信息列表
.info-list {

    .item-label {
        display: inline-block;
        width: 75px;
        color: #333;
        margin-right: 6px;
        text-align: left;
    }

    .item-value {
        color: @color-text-secondary;
    }
    .list-item {

        .list-line-multiple {

            .list-content {
                white-space: normal;
                display: table-row;
            }

            .item-label {
                display: table-cell;
            }

            .item-value {
                display: table-cell;
            }
        }
    }
}

//segment相关样式
.segment-wrapper {
    border-bottom: 1px solid @border-color-split;
    background-color: #fff;

    .segment {
        min-height: 44px;
    }

    .segment-item {
        position: relative;
        font-size: @color-text-base;
        color: @color-text-secondary;
        border: transparent;
    }

    .segment-item-selected {
        color: @brand-primary !important;
        background-color: #fff !important;

        &::after {
            content: '';
            position: absolute;
            left: 30%;
            bottom: 0;
            width: 40%;
            height: 2px;
            background-color: @brand-primary;
        }
    }
}

//筛选+排序样式
.data-filter-wrapper {
    background-color: #fff;

    .data-filter {
        position: relative;
        height: 44px;
        text-align: center;
        border-bottom: 1px solid @border-color-split;
        background-color: #fff;
        overflow-y: inherit;
    }
}

//fix固定顶部
.fix-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
}

//有底部按钮的样式
.fix-footer {
    width: 100%;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 10;

    &.flexbox .flexbox-item,
    .flexbox .flexbox-item {
        margin-left: 0;
    }
}

.page-view {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.page-scroll {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow-y: auto;

    &.has-header {
        top: 44px;
    }

    &.has-footer {
        bottom: 44px;
    }

    .listveiw-wrapper .list-body {
        border-top: 0;
    }
}

.page-white-block {
    height: 100%;
    background-color: #fff;
}

//暂无数据提示页面
.empty-tips {
    font-size: @font-size-caption-sm;
    color: @color-text-placeholder;
    text-align: center;
    padding: 1rem 15px;
}

.value-long .list-item .list-line .list-extra {
    flex-basis: 60%;
}



.contact-tips {
    padding: 0 15px;
    font-size: @font-size-default;
    color: @color-text-secondary;

    &.right {
        float: right;
    }

    .contact-service {
        padding: 10px 0;
    }
}

.whitespace.whitespace-sm {
    height: 10px !important;
}

//协议条款类页面的样式
.agreement-container {
    padding: 15px;
    background-color: #fff;

    .title {
        font-size: 20px;
        color: #333;
        margin: 10px 0;
    }

    p {
         font-size: 14px;
        line-height: 1.6em;
        color: #666;
    }

    .sub-title {
        margin-top: 25px;
        margin-bottom: 8px;
    }

    .item {
        margin-bottom: 8px;
    }

    .number {
        display: inline-block;
        padding-right: 5px;
    }

    .content {

    }
}

//input内容字体偏上的问题修复
.list-item .input-control input {
    line-height: 20px !important;
}

.has-input-item.list-item .list-line .list-content {
    padding: 0;

    .list-item.input-item {
        padding: 0;
    }
}

//listview下拉刷新组件相关
.list-view-scrollview {

    .list-body {
        border: none;
    }
}

.empty-data.list-view-scrollview {

    .list-body {
        border: none;

        &:after {
            content: '暂无数据';
            display: block;
            color: @color-text-caption;
            padding: 40px;
            text-align: center;
        }
    }
}

//认证信息提示成功提示页面
.info-submit-tips {

    .tips-icon {
        width: 100px;
        height: 100px;
        line-height: 100px;
        font-size: 100px;
        color: @brand-success;
        margin-top: 1.8rem;

        &.fail {
            color: #ffbe00;
        }
    }

    .content {
        text-align: center;
    }

    .tips-title {
        font-size: 20px;
        color: #333;
        margin: 20px 0;
    }

    .tips-text {
        color: @color-text-placeholder;
        margin-bottom: 8px;
    }
}

.btn.btn-logout {
    border-color: @border-color-split
}

//Toast组件bug处理
.toast.toast-mask {
    display: block !important;

    .toast-notice {
        bottom: 50%;
    }
}